/*
 * Copyright (c) 2007-2020 西安交通信息投资营运有限公司 版权所有
 */

package com.xci.edu.core.service;

import com.github.lvyanyang.core.BaseService;
import com.xci.edu.core.entity.EduCategory;
import com.xci.edu.core.entity.EduPlan;
import com.xci.edu.core.entity.ExamPaper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 培训科目信息服务
 * @author 张谦 zhangqian@xci96716.com
 * @since 2020-11-24 17:54:07
 */
@Service
public class EduWebHelpService extends BaseService {
    /** 培训科目服务 */
    @Resource private EduCategoryService eduCategoryService;
    /** 培训计划服务 */
    @Resource private EduPlanService eduPlanService;
    /** 试卷服务 */
    @Resource private ExamPaperService examPaperService;

    /**
     * 查询培训科目(下拉框)
     *
     * @param
     * @return 培训科目(下拉框)
     */
    public List<EduCategory> getCategoryIdAndCategoryName() {
        return eduCategoryService.getCategoryIdAndCategoryName();
    }

    /**
     * 查询培训计划信息(启用)(下拉框)
     *
     * @param eduCategoryId 科目主键
     * @return 培训计划信息(启用)(下拉框)
     */
    public List<EduPlan> getPlanIdAndPlanName(String eduCategoryId) {
        return eduPlanService.getPlanIdAndPlanName(eduCategoryId);
    }

    /**
     * 查询试卷信息(下拉框)
     *
     * @param
     * @return 试卷信息(下拉框)
     */
    public List<ExamPaper> getPaperIdAndPaperName(String eduCategoryId) {
        return examPaperService.getPaperIdAndPaperName(eduCategoryId);
    }
}